<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	
<div id="roleGrid"></div>
<div id="roleToolbar">
	<div>
		<a href="#" class="easyui-linkbutton" onclick="role.toolbar.showAddDialog();" data-options="
		iconCls:'icon-add',
		plain:true">
			新增
		</a>
		<a href="#" class="easyui-linkbutton" onclick="role.toolbar.showUpdateDialog();" data-options="
		iconCls:'icon-edit',
		plain:true">
			修改
		</a>
	<!-- 	<a href="#" class="easyui-linkbutton" onclick="role.toolbar.remove();" data-options="
		iconCls:'icon-remove',
		plain:true">
			删除
		</a> -->
		<a href="#" class="easyui-linkbutton" onclick="role.toolbar.updateState();" data-options="
		iconCls:'icon-edit',
		plain:true">
			修改状态
		</a>
		<a href="#" class="easyui-linkbutton" onclick="role.toolbar.redo();" data-options="
		iconCls:'icon-redo',
		plain:true">
			取消
		</a>
	</div>

</div>

<div id="roleAddDialog" style="width:350px" class="easyui-dialog role-add" data-options="
title:'新增角色',
buttons:'#roleAddButtons',
closed: true,
onClose:role.toolbar.resetAddForm">
	<form id="roleAddForm" method="post" style="text-align: center">
		<p>
			<strong>角色：</strong>
			<input type="text" name="roleName" id="roleName" class="easyui-textbox" data-options="
			required:true">
		</p>
		<!-- <p>
			<strong>状态：</strong>
			<input type="text" name="roleState" id="roleState" class="easyui-validatebox" data-options="
			required:true">
		</p> -->
		<!-- <p>
			<strong>备注：</strong>
			<input type="text" name="roleMemo" id="roleMemo" class="easyui-validatebox">
		</p> -->
		<p>
			<strong>菜单：</strong>
			<input type="text" id="roleMenu" name="roleMenu" style="width:175px">
		</p>
	</form>
</div>
<div id="roleAddButtons">
	<a href="#" onclick="role.toolbar.add()" class="easyui-linkbutton" data-options="
	iconCls: 'icon-add',
	plain: true">
		新增
	</a>
	<a href="#" onclick="role.toolbar.hiddenAddDialog();" class="easyui-linkbutton" data-options="
	iconCls: 'icon-redo',
	plain: true">
		取消
	</a>
</div>
<div id="roleUpdateDialog" style="width:350px" class="easyui-dialog role-add" data-options="
title: '修改角色',
buttons: '#roleUpdateButtons',
closed: true,
onClose: role.toolbar.resetUpdateFrom">
	<form id="roleUpdateForm" method="post" style="text-align: center">
		<input type="hidden" name="id"/>
		<p>
			<strong>角色：</strong>
			<input type="text" name="roleName" id="roleName" class="easyui-textbox" data-options="
			required: true">
		</p>
		<!-- <p>
			<strong>备注：</strong>
			<input type="text" name="roleMemo" id="roleMemo" class="easyui-validatebox">
		</p> -->
		<p>
			<strong>菜单：</strong>
			<input type="text" id="roleMenuUpdate" name="roleMenuUpdate" style="width:175px">
		</p>
	</form>
</div>
<div id="roleUpdateButtons">
	<a href="#" onclick="role.toolbar.update()" class="easyui-linkbutton" data-options="
	iconCls: 'icon-edit',
	plain: true">
		修改
	</a>
	<a href="#" onclick="role.toolbar.hiddenUpdateDialog();" class="easyui-linkbutton" data-options="
	iconCls: 'icon-redo',
	plain: true">
		取消
	</a>
</div>

<script>
window.ctx = "<%=request.getContextPath() %>"
</script>
<script src="<%=request.getContextPath() %>/static/system/js/role.js"></script>
<script src="<%=request.getContextPath() %>/static/common/js/common.js"></script>

